package lab02.test06;

public class Circle {
    double radius;
    double length;
    double area;
    public static final double PI = 3.1415;

    Circle() {
    }

    Circle(double radius) {
        this.radius = radius;
    }

    double length() {
        length = 2 * PI * radius;
        System.out.println("该圆形的周长是：" + length);
        return length;
    }

    double area() {
        area = PI * radius * radius;
        System.out.println("该圆形的面积是：" + area);
        return area;
    }
}
